package com.foreknow.sercive;


import com.foreknow.model.Business;

import java.util.List;

public interface BusinessService {
    /**
     * 添加
     * @param business
     * @return
     */
    public boolean add(Business business);

    /**
     * 查询所有用具
     * @return
     */
    public List<Object> selectAll();

    /**
     * 根据姓名查询
     * @param name
     * @return
     */
    public List<Object> selectBuName(String name);

    /**
     * 根基id查询
     * @param id
     * @return
     */
    public boolean deleteById(int id);

    /**
     * 根据 id修改
     * @param business
     * @param id
     * @return
     */
    public boolean updateById(Business business,int id);
}
